d407a0f0b17d604ff62707e877efe5bb46b762fa,test-src/org/pentaho/platform/dataaccess/datasource/wizard/service/impl/ConnectionServiceImplIT.java,ConnectionServiceImplIT,testAddConnectionError,#,228
Before Change
mockIDatabaseConnection );
try {
connectionServiceImpl.addConnection( mockIDatabaseConnection );
fail(); //This line should never be reached
} catch ( ConnectionServiceException e ) {
//Expected exception
After Change
public void testAddConnectionError() throws ConnectionServiceException {
DatabaseConnection connection = new DatabaseConnection();
connection.setName( ERROR_CONNECTION_NAME );
connectionServiceImpl.addConnection( connection );
}
@Test( expected = ConnectionServiceException.class )